package com.zkh360.service.message.service;

import java.util.List;

import com.zkh360.service.message.exceptions.BusinessException;
import com.zkh360.service.message.model.Pager;
import com.zkh360.service.message.model.SysUserVO;

/**
 * 用户接口
 * 
 * @author chuanxi.zhao
 * 
 */
public interface UserService {

    /**
     * 根据用户属性查询用户信息
     *
     * @param sysUsers  用户属性
     * @return
     */
    public List<SysUserVO> getUsers(SysUserVO sysUserVo) throws BusinessException;
    
    /**
     * 根据用户属性查询用户信息
     *
     * @param sysUsers  用户属性 可以为null
     * @param page      分页参数   
     * @return 满足条件的用户集合
     */
    public List<SysUserVO> getUsers(SysUserVO sysUserVo, Pager pager) throws BusinessException;
    
    /**
     * 
     * 
     * @param sysUserVo
     */
	public void addUser(SysUserVO sysUserVo);

	public void deleteUser(Long userId);

	public void editUser(SysUserVO sysUserVo);
	
	/**
	 * 获取用户数量
	 * 
	 * @param sysUsers 用户参数
	 * @return 用户数量
	 */
	public int getUsersCount(SysUserVO sysUsers);
}
